package ru.ifmo.ipimenov.ewf_svn.standalone.service;

import ru.ifmo.ipimenov.ewf_svn.standalone.model.db.Document;
import ru.ifmo.ipimenov.ewf_svn.standalone.model.db.User;
import ru.ifmo.ipimenov.ewf_svn.standalone.model.db.State;

import java.util.List;

/**
 * @author: Ilya Pimenov
 * Scartel Starlab company
 */
public interface DocumentService {

    public List<Document> load(User u);

    public Document load(Integer id);

    public void save(Document d);

    public void update(Document d);

    public void setState(Document d, State state);

}
